package org.linlinjava.litemall.db.beans;

public class Constants {

    /**
     * 门店店长角色id
     */
    public static final Integer SHOPKEEPER_ROLE_ID = 4;
    /**
     * 门店副店长角色id
     */
    public static final Integer SHOPKEEPER_ASSISTANT_ROLE_ID = 5;

    /**
     * 门店经理角色id
     */
    public static final Integer SHOP_MANAGER_ROLE_ID = 6;

    /**
     * 门店副经理角色id
     */
    public static final Integer SHOP_MANAGER_ASSISTANT_ROLE_ID = 7;

    /**
     * 店员角色id
     */
    public static final Integer SHOP_ASSISTANT_ROLE_ID = 9;

    /**
     * 角色类型=true，角色为门店角色
     */
    public static final Boolean SHOP_ROLE_TYPE = true;

    /**
     * 商品审核状态：（1：待审核；2：已审核；3：未通过）
     */
    public static final Integer GOODS_REVIEW_PENDING = 1;
    public static final Integer GOODS_REVIEW_APPROVE = 2;
    public static final Integer GOODS_REVIEW_REJECT = 3;
    /**
     * 商品日志类型：（1：审核日志；2:普通日志）
     */
    public static final Integer GOODS_LOG_REVIEW = 1;
    public static final Integer GOODS_LOG_COMMON = 2;


    public static final Byte RECHARGE_TYPE_BALANCE = 3;    //充值余额
    public static final Byte RECHARGE_TYPE_GIFT_CARD = 1;    //充值礼物卡
    /**
     * 支付方式
     */

    public static final Byte PAY_TYPE_PAYPAL = 3;    //PayPal支付
    public static final Byte PAY_TYPE_CASH = 1;    //现金支付
    public static final Byte PAY_TYPE_GIFT_CARD = 2;    //礼物卡支付
    public static final Byte PAY_TYPE_BALANCE = 4;    //余额支付
    public static final Byte PAY_TYPE_CLOVER = 5; //Clover支付
    public static final Byte PAY_TYPE_POINT_EXCHANGE = 6;   //积分支付


    /**
     * 用户反馈状态
     */
    public static final Integer FEEDBACK_STATUS_REPLY = 1;
    public static final Integer FEEDBACK_STATUS_IGNORE = 2;

    /**
     * 广告类型
     */
    public static final Boolean AD_TYPE_COMMON = false;     //  通用
    public static final Boolean AD_TYPE_SHOP= true;         //  指定门店



    /**
     * 商品分类级别
     */
    public static final String CATEGORY_LEVEL_L1 = "L1";     //  分类级别
    public static final String CATEGORY_LEVEL_L2 = "L2";     //
    public static final String CATEGORY_LEVEL_L3 = "L3";     //

    /**
     * 商品优惠价格类型
     */
    public static final Byte GOODS_PRICE_TYPE_VIP = 1;
    public static final Byte GOODS_PRICE_TYPE_LADDER = 2;
    public static final Byte GOODS_PRICE_TYPE_MAXMINU = 3;

    /**
     * 会员等级（0：默认；1：白银；2：黄金；3：铂金；4：钻石）
     */
    public static final Byte USER_LEVEL_DEFAULT = 0;
    public static final Byte USER_LEVEL_SILVER = 1;
    public static final Byte USER_LEVEL_GOLD = 2;
    public static final Byte USER_LEVEL_PLATINUNM = 3;
    public static final Byte USER_LEVEL_DIAMOND = 4;

    public static final Short ORDER_STATUS_NEW = 101;   //新建
    public static final Short ORDER_STATUS_HANG = 1;   //挂起
    public static final Short ORDER_STATUS_UNPAID = 101;     //待支付
    public static final Short ORDER_STATUS_ONGOING = 201;     //进行中
    public static final Short ORDER_STATUS_PICKUP = 301;     //退款成功
    public static final Short ORDER_STATUS_FINISHED = 401;     //已完成
    public static final Short ORDER_STATUS_CANCEL = 102;     //已取消
    public static final Short STATUS_AUTO_CANCEL = 103;           //自动取消
    public static final Short STATUS_REFUND = 202;                //退款
    public static final Short STATUS_REFUND_CONFIRM = 203;        //退款成功
    public static final Short STATUS_AUTO_CONFIRM = 402;          //自动确认收货

    /**
     * 门店状态（1:营业；2：歇业；3：装修）
     */
    public static final Short SHOP_STATUS_OPEN = 1;
    public static final Short SHOP_STATUS_CLOSE = 2;
    public static final Short SHOP_STATUS_UNABLE = 2;

    /**
     * 用户充值/用户消费
     */
    public static final Byte USER_SAVING = 1;
    public static final Byte USER_CONSUME = 2;

    /**
     * 订单类型(1自提，2配送，3堂食，4外带)
     */
    public static final Byte ORDER_AET = 1;
    public static final Byte ORDER_SEND = 2;
    public static final Byte ORDER_EAT = 3;
//    public static final Byte ORDER_MAIL = 4;
    public static final Byte ORDER_TAKEAWAY = 4;


    /**
     *  地区类型
     */
    public static final Byte REGION_TYPE_COUNTRY = 0;  //国家
    public static final Byte REGION_TYPE_PROVINCE = 1;  //省份
    public static final Byte REGION_TYPE_CITY = 2;  //市

    /**
     *  礼物卡类型
     */
    public static final Byte GIFTCARD_TYPE_COMMON = 1;  //不限
    public static final Byte GIFTCARD_TYPE_CATEGORY = 2;  //指定类目


    /**
     *  支付状态
     */
    public static final Byte PAY_STATUS_DOING= 1;  //进行中
    public static final Byte PAY_STATUS_DONE = 2;  //已完成
    public static final Byte PAY_STATUS_REFUSE = 3;  //已退款
    public static final Byte PAY_STATUS_AUTO_CANCEL = 4;  //自动取消
    public static final Byte PAY_STATUS_CANCEL = 5;  //手动取消


    /**
     *  礼物卡日志操作类型
     */
    public static final Byte LOG_GIFTCARD_RECHARGE= 1;  //充值
    public static final Byte LOG_GIFTCARD_CONSUME = 2;  //消费
    public static final Byte LOG_GIFTCARD_TRANSTER_OUT =3; //转出
    public static final Byte LOG_GIFTCARD_TRANSTER_IN = 4; //转入
    public static final Byte LOG_GIFTCARD_SHARE = 5;  //赠送
    public static final Byte LOG_GIFTCARD_PICK = 6;  //领取
    public static final Byte LOG_GIFTCARD_DESTORY = 7;  //销毁
    public static final Byte LOG_GIFTCARD_REFUND = 8;  //退款
    public static final Byte LOG_GIFTCARD_SUBSCRIBE_CONSUME = 9;   //订阅确认
    public static final Byte LOG_GIFTCARD_SUBSCRIBE_RENEVAL = 10;  //订阅续订
    public static final Byte LOG_GIFTCARD_SUBSCRIBE_GIVE = 11;     //订阅赠送
    public static final Byte LOG_GIFTCARD_GIFTCARD_CONSUME = 12;   //礼物卡充值

    /**
     * 订阅状态
     */
    public static final Integer SUBSCRIBE_STATUS_STOP = 0;

    public static final Integer SUBSCRIBE_STATUS_INUSE = 1;

    public static final Integer SUBSCRIBE_STATUS_NEW = 2;


    /**
     * 消息类型
     */
    public static final Byte MESSAGE_TYPE_SYSTEM = 1;  //系统消息
    public static final Byte MESSAGE_TYPE_LEVEL = 2;  //站内消息


    /**
     * 通知消息类型
     */
    public static final Byte MSG_TYPE_SYSTEM = 1;  //系统消息
    public static final Byte MSG_TYPE_ORDER = 2;  //订单消息
    public static final Byte MSG_TYPE_PROMOTION = 3;  //推广消息
    public static final Byte MSG_TYPE_OTHER = 4;  //其他消息
    public static final Byte MSG_TYPE_FEEDBACK = 5;  //反馈消息
    /**
     * 极光推送title
     */
    public static final String JPUSH_TITLE_FEEDBACK = "Received a feedback message";        //用户反馈
    public static final String JPUSH_TITLE_SYSTEM = "Received a station message";        //用户反馈
    public static final String JPUSH_TITLE_ORDER = "收到一条订单消息";        //用户反馈
    public static final String JPUSH_TITLE_PROMOTION = "收到一条推广消息";        //用户反馈


    /**
     * 优惠券折扣类型
     */
    public static final Byte DISCOUNT_TYPE_REDUCE = 1;   //满减
    public static final Byte DISCOUNT_TYPE_RATE = 2;     //百分比

    /**
     * 性别
     */
    public static final Integer GENDER_TYPE_OTHER = 1;   //其他
    public static final Integer GENDER_TYPE_WOMAN = 2;   //女
    public static final Integer GENDER_TYPE_MAN = 3;     //男

    /**
     * 性别
     */
    public static final Integer BARCODE_PAY_BALANCE = 1;    //扫码余额支付
    public static final Integer BARCODE_PAY_CARD = 2;       //扫码卡支付

    /**
     * 二维码过期时间
     */
    public static final Integer BARCODE_EXPIRE_SECOND = 30;       //30秒

    /**
     * 优惠券类型
     */
//    public static final Short TYPE_COMMON = 0;      //通用券
    public static final Short TYPE_REGISTER = 1;    //注册赠券
    public static final Short TYPE_BARCODE = 2;     //实物优惠券
    public static final Short TYPE_CODE = 3;        //优惠券码兑换

    /**
     * 优惠券商品类型
     */
    public static final Short GOODS_TYPE_ALL = 0;       //全场通用
    public static final Short GOODS_TYPE_CATEGORY = 1;  //指定类型
    public static final Short GOODS_TYPE_ARRAY = 2;     //指定商品

    /**
     *  优惠券用户状态
     */
    public static final Short COUPON_STATUS_NORMAL = 0;
    public static final Short COUPON_STATUS_USED = 1;
    public static final Short COUPON_STATUS_EXPIRED = 2;
    public static final Short COUPON_STATUS_DISTRIBUTING = 3;
    public static final Short COUPON_STATUS_OUT = 4;

    /**
     * 优惠券状态 0--正常，1--上架，2--下架
     */
    public static final Short COUPON_NORMAL = 0;
    public static final Short COUPON_PUSHED = 1;
    public static final Short COUPON_PULLED = 2;

    /**
     * 优惠券过期类型
     */
    public static final Short TIME_TYPE_DAYS = 0;
    public static final Short TIME_TYPE_TIME = 1;


    /**
     * 订单来源
     */
    public static final Byte ORDER_SOURCE_APP = 1;          //手机app下单
    public static final Byte ORDER_SOURCE_POS = 2;          //门店下单
    public static final Byte ORDER_SOURCE_SITE = 3;         //官网商城
    public static final Byte ORDER_SOURCE_SUBSCRIBE = 4;    //订阅

    /**
     * 用户订阅状态
     */
    public static final Integer SUBSCRIBE_USER_EXCEED = 0;          //已过期
    public static final Integer SUBSCRIBE_USER_NORMAL = 1;          //已订阅
    public static final Integer SUBSCRIBE_USER_NOT_ACTIVE = 2;      //未激活
    public static final Integer SUBSCRIBE_USER_MEMBER_NOT_CONFIRM = 3;   //会员赠送订阅未确认
    public static final Integer SUBSCRIBE_USER_MEMBER_CONFIRM = 4;       //会员赠送订阅已确认

    /**
     * aws信息类型
     */
    public static final String AWS_MESSAGE_TYPE_TRANSACTIONAL = "TRANSACTIONAL";    //敏感的、 验证码、密码等
    public static final String AWS_MESSAGE_TYPE_PROMOTIONAL = "PROMOTIONAL";        //推广的、不重要的、订单通知、活动等

    /**
     * 订阅方式
     */
    public static final Byte SUBSCRIBE_METHOD_WEEK = 1;         //周
    public static final Byte SUBSCRIBE_METHOD_MONTH = 2;        //月
    public static final Byte SUBSCRIBE_METHOD_YEAR = 3;         //年

    /**
     * 制作状态
     */
    public static final Byte ORDER_MADE_STATUS_NEW = 0;   //待制作
    public static final Byte ORDER_MADE_STATUS_ONGOING = 1;     //制作中
    public static final Byte ORDER_MADE_STATUS_PICKUP = 2;     //已取餐

    /**
     * 订单类型(1:堂食,2:外带)
     */
    public static final Byte ORDER_TYPE_EAT = 1;
    public static final Byte ORDER_TYPE_TAKE_AWAY = 2;
    /**
     * 税率类型(1：国税；2：省税；3：地方税)
     */
    public static final Byte TAX_TYPE_COUNTRY = 1;
    public static final Byte TAX_TYPE_PRIVINCE = 2;
    public static final Byte TAX_TYPE_LOCAL = 3;
    /**
     * 计费类型:0:次(按次计费只需增加一次费用),1:份
     */
    public static final Integer ACCESSORY_COST_TYPE_TIME = 0;
    public static final Integer ACCESSORY_COST_TYPE_NUMBER = 1;
    /**
     * 支付方式
     */
    public static final Byte ORDER_PAY_TYPE_CASH = 1;   //现金支付
    public static final Byte ORDER_PAY_TYPE_CARD = 2;   //礼物卡支付
    public static final Byte ORDER_PAY_TYPE_PAYPAL = 3;    //PayPal支付
    public static final Byte ORDER_PAY_TYPE_BALANCE = 4;    //余额支付
    public static final Byte ORDER_PAY_TYPE_CLOVER = 5;    //Clover支付
    public static final Byte ORDER_PAY_TYPE_POINTS = 6;    //积分支付

    // 订单推送类型
    /**
	 * 订单确认（确认之后，待付款），推送pos
	 */
	public static final Integer ORDER_PUSH_TYPE_CONFIRM = 10;
	/**
	 * 订单挂起，推送pos
	 */
	public static final Integer ORDER_PUSH_TYPE_HANG_UP = 11;
	/**
	 * 订单恢复，推送pos
	 */
	public static final Integer ORDER_PUSH_TYPE_RECOVERY = 12;
	/**
	 * 已付款（已付款或者重做，进行中、待制作），推送pos与厨房端
	 */
	public static final Integer ORDER_PUSH_TYPE_PAID = 13;
	/**
	 * 开始制作（制作中），推送pos与厨房端
	 */
	public static final Integer ORDER_PUSH_TYPE_START_PRODUCTION = 14;
	/**
	 * 订单取餐（制作完成），推送pos与厨房端
	 */
	public static final Integer ORDER_PUSH_TYPE_MEAL_TAKEN = 15;
	/**
	 * 订单完成，推送pos与厨房端
	 */
	public static final Integer ORDER_PUSH_TYPE_DONE = 16;
	/**
	 * 订单取消，推送pos
	 */
	public static final Integer ORDER_PUSH_TYPE_CANCEL = 17;
	/**
	 * 订单申请退款,推送pos与厨房端
	 */
	public static final Integer ORDER_PUSH_TYPE_REFUND = 18;

	 /**
     * 评价状态
     */
    public static final Byte ORDER_EVALUATION_STATUS_NONE = 0;   //未评价
    public static final Byte ORDER_EVALUATION_STATUS_COMMENTED = 1;   //已评价
    public static final Byte ORDER_EVALUATION_STATUS_OVERDUE = 2;    //逾期未评价

    /**
     * 订单退款状态:0.无,1.退款中、2.退款失败(申请不通过)3.退款成功
     */
    public static final Byte ORDER_REFUND_STATUS_NONE = 0;   //无
    public static final Byte ORDER_REFUND_STATUS_ONGOING = 1;   //退款中
    public static final Byte ORDER_REFUND_STATUS_FAIL = 2;     //退款失败(申请不通过)
    public static final Byte ORDER_REFUND_STATUS_SUCCESS = 3;     //退款成功

    /**
     * 商品的制作状态
     */
    public static final Byte ORDER_GOODS_MADE_STATUS_NEW = 0;   //待制作
    public static final Byte ORDER_GOODS_MADE_STATUS_ONGOING = 1;     //制作中
    public static final Byte ORDER_GOODS_MADE_STATUS_FINISHED = 2;     //制作完成

    /**
     * 积分日志类型
     */
    public static final Byte INTEGRAL_LOG_TYPE_ADD = 0;   //增加
    public static final Byte INTEGRAL_LOG_TYPE_MINUS = 1;   //兑换余额
    public static final Byte INTEGRAL_LOG_TYPE_REFUND = 2;  //退款 「金额退款」
    public static final Byte INTEGRAL_LOG_TYPE_GIVE = 3;
    public static final Byte INTEGRAL_LOG_TYPE_CONSUMPTION = 4;
    public static final Byte INTEGRAL_LOG_TYPE_MANAGEMENT_SUBSCTRACT = 5;  // 管理台扣减积分
    public static final Byte INTEGRAL_LOG_TYPE_MANAGEMENT_ADD = 6;         // 管理台添加积分
    public static final Byte INTEGRAL_LOG_TYPE_RETURN = 8;//退还「积分退款」

    /**
     * 退款状态:1:退款中,2:退款失败,3:退款成功
     */
    public static final Byte REFUND_STATUS_ONGOING = 1;   //退款中
    public static final Byte REFUND_STATUS_FAIL = 2;     //退款失败
    public static final Byte REFUND_STATUS_SUCCESS = 3;     //退款成功

    /**
     * 账本来源：0订单、1采购、2退款
     */
    public static final Integer BOOK_SOURCE_TYPE_ORDER = 0;          //订单
    public static final Integer BOOK_SOURCE_TYPE_PURCHASE = 1;          //采购
    public static final Integer BOOK_SOURCE_TYPE_REFUND = 2;         //退款

    /**
     * 礼物卡状态: 0新增，1上架，2下架
     */
    public static final Integer GIFT_CARD_STATUS_NEW = 0;          //新增
    public static final Integer GIFT_CARD_STATUS_PUSHED = 1;          //上架
    public static final Integer GIFT_CARD_STATUS_PULLED = 2;         //下架

    /**
     * 礼物卡购买记录类型 1：充值；2：消费
     */
    public static final Byte GIFT_CARD_USER_LOG_TYPE_RECHARGE = 1;

    public static final Byte GIFT_CARD_PAY_STATUS_COMSUMPTION = 2;

    public static final Byte GIFT_CARD_PAY_STATUS_OUT = 3;

    public static final Byte GIFT_CARD_PAY_STATUS_IN = 4;

    /**
     * 礼物卡用户状态: 0：未使用，1：正常
     */
    public static final Byte GIFT_CARD_USER_STATUS_NOT_USE = 0;

    public static final Byte GIFT_CARD_USER_STATUS_NORMAL = 1;

    /**
     * 礼物卡用户是否为默认
     */
    public static final Integer GIFT_CARD_USER_IS_DEFAULT = 1;
    public static final Integer GIFT_CARD_USER_IS_NOT_DEFAULT = 0;


    /**
     * 积分兑换状态，1--上架，2--下架
     */
    public static final Integer POINT_EXCHANGE_STATUS_PUSHED = 1;
    public static final Integer POINT_EXCHANGE_STATUS_PULLED = 2;

    /**
     * 发货状态
     */

    public static final Byte SHIP_STATUS_NOT_SEND_OUT = 0;
    public static final Byte SHIP_STATUS_SEND_OUT = 1;

    /**
     * 等级会员和付费会员状态 1--新增，2--启用. 3--停用
     */
    public static final Byte MEMBER_STATUS_ADD = 1;

    public static final Byte MEMBER_STATUS_INUSE = 2;

    public static final Byte MEMBER_STATUS_NOUSE = 3;

    /**
     * 系统配置 数据key
     */
    public static final String SYSTEM_PAY_MEMBER = "lumiere_pay_member";

    public static final String SYSTEM_LEVEL_MEMBER = "lumiere_level_member";

    /**
     * 付费会员地区类型 1--省。2--市。3--区县。4--门店
     */
    public static final Byte AREA_TYPE_COUNTRY = 1;

    public static final Byte AREA_TYPE_PROVINCE = 2;

    public static final Byte AREA_TYPE_CITY = 3;

    public static final Byte AREA_TYPE_SHOP = 4;

    /**
     * 会员付费类型 1--购买，2--续购，3--赠送
     */
    public static final Byte MEMBER_PURCHASE_TYPE_BUY = 1;

    public static final Byte MEMBER_PURCHASE_TYPE_REBUY = 2;

    public static final Byte MEMBER_PURCHASE_TYPE_GIVE = 3;

    /**
     * 会员购买支付方式 1--余额，2--信用卡，3--paypal,4--积分,5--礼物卡
     */
    public static final Byte MEMBER_PAY_TYPE_YUE = 1;

    public static final Byte MEMBER_PAY_TYPE_IDCARD = 2;

    public static final Byte MEMBER_PAY_TYPE_PAYPAL = 3;

    public static final Byte MEMBER_PAY_TYPE_POINT = 4;

    public static final Byte MEMBER_PAY_TYPE_GIFT_CARD = 5;


    /**
     * 会员异常
     */
    public static final Integer MEMBER_EXCEPTION_NULL = 9900;                        //付费会员不存在

    public static final Integer NOT_ENOUGH_POINT = 9901;                  //用户积分不足

    public static final Integer NOT_EQUALS_RENEVAL_POINT = 9902;     //续购积分不匹配

    public static final Integer NOT_SUPPORT_RENEVAL_POINT = 9903;         //会员不支持续订

    public static final Integer NOT_REGISTER = 9904;                //该用户没注册，但是已经有了该会员

    public static final Integer NOT_SUPPORT_POINT = 9905;           //不支持积分购买会员

    public static final Integer NOT_EQUALS_POINT = 9906;     //积分不匹配

    public static final Integer MEMBER_SUCCESS = 9907;                               //可以购买会员

    public static final Integer NOT_SUPPORT_RENEVAL_MONEY = 9908;           //不支持金额购买会员

    public static final Integer NOT_EQUALS_RENEVAL_MONEY = 9909;            //续购金额不匹配

    public static final Integer NOT_SUPPORT_MONEY = 9910;                   //不支持金额购买会员

    public static final Integer NOT_EQUALS_MONEY = 9911;                     //金额不匹配


    /**
     * 优惠券的状态 0--正常，1--上架，2--下架，3--已发放
     */
    public static final Short Coupon_STATUS_NORMAL = 0;

    public static final Short Coupon_STATUS_PUSHED = 1;

    public static final Short Coupon_STATUS_PULLED = 2;

    public static final Short Coupon_STATUS_DISTRIBUTE = 2;

    /**
     * 厨房端消息或者pos端消息
     *
     */
    public static final Byte MESSAGE_TYPE_POS = 0;

    public static final Byte MESSAGE_TYPE_CHICKEN = 2;

    public static final Byte MESSAGE_TYPE_PAY = 1;

    public static final Byte MESSAGE_TYPE_REFUND = 3;
}
